package com.slipper.sfts.member.front;

import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

import com.slipper.common.bo.Result;
import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.member.bo.MemberBrokerAccountBO;
import com.slipper.sfts.api.member.service.IMemberBrokerAccountSv;
import com.slipper.sfts.member.service.MemberBrokerAccountService;

import java.util.List;

@RestController
public class MemberBrokerAccountSv implements IMemberBrokerAccountSv {
    @Resource
    private MemberBrokerAccountService memberBrokerAccountService;
    
    @Override
    public Result<MemberBrokerAccountBO> queryBy(String id) {
        return ResultUtil.successResult(memberBrokerAccountService.queryBy(id));
    }

    @Override
    public Result<List<MemberBrokerAccountBO>> queryList(MemberBrokerAccountBO bo) {
        return ResultUtil.successResult(memberBrokerAccountService.queryList(bo));
    }
    
    @Override
    public Result<List<MemberBrokerAccountBO>> queryPage(MemberBrokerAccountBO bo) {
        return ResultUtil.successResult(memberBrokerAccountService.queryPage(bo));
    }
    
    @Override
    public Result<?> save(MemberBrokerAccountBO bo) {
        return ResultUtil.saveResult(memberBrokerAccountService.save(bo), bo);
    }
    
    @Override
    public Result<?> delete(MemberBrokerAccountBO bo) {
        return ResultUtil.deleteResult(memberBrokerAccountService.delete(bo));
    }
}
